package com.yq.backend;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @descriptions:抽奖管理平台
 * @author: yunqiang
 * @date: 2022/5/2 22:41
 */
@MapperScan("com.yq.backend.mapper")
@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement
@EnableAsync//// 开启异步任务[多线程下运行]
public class BackendApplication {

    private static final Logger logger = LoggerFactory.getLogger(BackendApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(BackendApplication.class);
        logger.info("\"(ヾ(◍°∇°◍)ﾉﾞ  抽奖管理平台服务启动成功！      ヾ(◍°∇°◍)ﾉﾞ\"");
    }

}
